From f96a349cc9e9742e47eebb10d191bb90e4bebad0 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 30 Nov 2005 23:30:03 +0000 Subject: [PATCH] Call wr_init before the waypoint backup is done. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index a1b735987..012acf37b 100644 --- a/main.c +++ b/main.c @@ -210,6 +210,8 @@ main(int argc, char *argv[]) rte_ct_bak = -1; trk_ct_bak = -1; + ovecs->wr_init(ofname); + if (global_opts.charset != &cet_cs_vec_utf8) { waypt_backup(&wpt_ct_bak, &wpt_head_bak); @@ -219,7 +221,6 @@ main(int argc, char *argv[]) cet_convert_strings(NULL, global_opts.charset, NULL); } - ovecs->wr_init(ofname); ovecs->write(); ovecs->wr_deinit(); -- 2.30.2